package practica02;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Eje03 {
	
	public static void main(String[] args) {
		int a=0;
		
		for(int i=0;i<10;i++)
		{
			System.out.print("Ingrese un numero: ");
			a += Leer();			
		}
		System.out.println();
		System.out.println("El resultado de la suma es: " + String.valueOf(a));

	}
	
	public static int Leer()
	{
		InputStreamReader is = new InputStreamReader(System.in );
		BufferedReader br = new BufferedReader(is);
		int a;
		
		try
		{
			a= Integer .parseInt(br.readLine());			
		}
		catch (IOException ex)
		{
			a=0;
		}
		
		return a;
	}

}
